package com.swpu.service_xueya.service;

import com.swpu.service_xueya.entity.XuetangRecord;
import com.baomidou.mybatisplus.extension.service.IService;
import com.swpu.service_xueya.entity.vo.XuetangChartData;
import com.swpu.service_xueya.entity.vo.XuetangRecordListVo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author chaichai
 * @since 2024-04-21
 */
public interface XuetangRecordService extends IService<XuetangRecord> {

    String addXuetangData(String openid, XuetangRecord xuetangRecord);

    XuetangRecord getXuetangDataById(String recordId);

    Map getRecentMonthXuetangStatus(String openid);

    List getNewestDayXuetangDataList(String openid);

    XuetangChartData getChartData(String openid,Integer measureDurationId);

    List<XuetangRecordListVo> getXuetangDataList(String openid, Integer pageNum, Integer pageSize);

    XuetangRecord getXuetangDataNewest(String openid);
}
